import { musicAxios } from "@/utils/http";

// 精选轮播图
export const getBanner = () => {
  return musicAxios.get('/fcj/music/getBanner', {});
};

// 最热推荐
export const getRecommendList = () => {
  return musicAxios.get('/fcj/music/getRecommendList', {});
};

// 歌手列表
export const getSingerList = () => {
  return musicAxios.get('/fcj/music/singerList', {});
};

// 歌手歌单
export const getSongListById = (singermid) => {
  return musicAxios.post('/fcj/music/songListById', {
    singermid
  });
};

// 获取播放地址
export const getSongUrl = (mids) => {
  return musicAxios.post('/fcj/music/songurl', { mids })
};

// 获取歌词
export const getLyric = (songmid) => {
  return musicAxios.post('/fcj/music/lyric', { songmid });
};

// 排行榜单
export const getTopRank = () => {
  return musicAxios.get('/fcj/music/topRank', {});
};

// 排行歌单
export const getRankSongList = (topid) => {
  return musicAxios.post('/fcj/music/rankSongList', { topid });
};

// 搜索
export const getSearch = (kw) => {
  return musicAxios.get('/fcj/music/search', {
    params: kw,
  });
};